package com.five.service;

import cn.dev33.satoken.util.SaResult;
import com.five.dto.*;
import com.five.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import com.five.vo.UserVo;

import java.util.List;

/**
* @author 86158
* @description 针对表【users(系统用户)】的数据库操作Service
* @createDate 2024-07-23 21:53:56
*/
public interface UsersService extends IService<Users> {
    SaResult login(UserLoginDto userLoginDto);

    SaResult queryUserInfo(String userName);
    SaResult checkUserPwd(UserPasswordDto userPasswordDto);
    SaResult updateUserPwd(UserPasswordDto userPasswordDto);
    SaResult updateUserInfo(UserUpdateDto userUpdateDto);

    SaResult register(UserRegisterDto userRegisterDto);
    SaResult checkUserName(UserRegisterDto userRegisterDto);
    SaResult deleteUser(String id);

    List<UserVo> getAllUsers(Integer currentPage, Integer pageSize, String name);

    Long countAllUsers(String name);

    List<UserVo> getUserByName(String name);

    SaResult addUser(UserDto userDto);

    SaResult deleteUsers(String[] userIds);
    SaResult updateUser(UserDto userDto);
    //    查询团长id，即用户表中的id
    SaResult querymanagerIdsInfo();
}
